import request from '@/utils/request'

// 查询实施预算-投标-实施abc列表
export function listAbc(query) {
  return request({
    url: '/bid/abc/list',
    method: 'get',
    params: query
  })
}

// 查询实施预算-投标-实施abc详细
export function getAbc(id) {
  return request({
    url: '/bid/abc/' + id,
    method: 'get'
  })
}

// 新增实施预算-投标-实施abc
export function addAbc(data) {
  return request({
    url: '/bid/abc',
    method: 'post',
    data: data
  })
}

// 修改实施预算-投标-实施abc
export function updateAbc(data) {
  return request({
    url: '/bid/abc',
    method: 'put',
    data: data
  })
}

// 删除实施预算-投标-实施abc
export function delAbc(id) {
  return request({
    url: '/bid/abc/' + id,
    method: 'delete'
  })
}

// 获取代码
export function getChildListByPid(query) {
  return request({
    url: '/erp/code/getChildListByPid',
    method: 'GET',
    params: query
  })
}
